package com.itheima.sc.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.itheima.sc.pojo.sms.CouponProductCategoryRelation;
import com.itheima.sc.pojo.sms.CouponProductRelation;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@TableName("sms_coupon")
public class CouponDto implements Serializable {

    private Long id;
    private Integer type; //优惠券类型 0:全场赠券  1:会员赠券
    private String name;
    private Integer platform;  //使用平台 0:全部 1:移动 2:PC
    private Integer count;    //数量
    private Double amount;    //金额
    private Integer perLimit;  //每人限领的张数
    private Double minPoint;   //使用门槛 0:表示无门槛
    private Date startTime;
    private Date endTime;
    private Integer useType;   //使用类型 0:全场通用 1:指定分类 2:
    private String note;       //备注
    private Integer publishCount; //发行数量
    private Integer useCount;    //已使用数量
    private Integer receiveCount; //领取数量
    private Date enableTime;     //可以领取的日期
    private String code;        //优惠码
    private Integer memberLevel;  //可领取的会员类型  0:无限时
    private List<CouponProductCategoryRelation> productCategoryRelationList;
    private List<CouponProductRelation> productRelationList;


}
